<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="true">
<head>  
  <title>卡片/编辑</title>
  <%@ include file="../link_script.jsp" %>
  <script type="text/javascript">
    $(function() { 
      $("form").validity(function() {
        $("#bankName").require();
        $("#accountCode").require();
      });
    });
  </script>
</head>
<body>
<form action="card.do?method=editCard_Do" method="post" target="_self"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">更新卡片</td>
          </tr>
          <tr>
            <td class="STYLE1" bgcolor="#FFFFFF"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;更新时间 : </td>
                <td class="STYLE11"><input type="text" id="editDate" name="editDate" value="${editDate}" size="20" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;开户银行 : </td>
                <td class="STYLE11"><input type="text" id="bankName" name="bankName" value="${card.bankName}" size="20" title="开户银行不能为空" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;所属城市 : </td>
                <td class="STYLE11"><input type="text" id="bankCity" name="bankCity" value="${card.bankCity}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;银行账户: </td>
                <td class="STYLE11"><input type="text" id="accountCode" name="accountCode"  value="${card.accountCode}" size="50" title="银行账户不能为空" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;开户银行地址: </td>
                <td class="STYLE11"><input type="text" id="bankAddress" name="bankAddress" value="${card.bankAddress}" size="50" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;网上银行: </td>
                <td class="STYLE11">
                <select id="cardState" name="cardState">
                  <c:if test="${card.cardState=='1'}"><option value="${card.cardState}">有</option></c:if>
                  <c:if test="${card.cardState=='0'}"><option value="${card.cardState}">无</option></c:if>
                  <option value="无" disabled="disabled">------</option>
                  <option value="1">有</option>
                  <option value="0">无</option>                
                </select></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;描述 : </td>
                <td class="STYLE11"><input type="text" id="cardDesc" name="cardDesc" value="${card.cardDesc}" size="50" /></td>
              </tr>
              <tr>
                <td class="STYLE51"><hr width="100%" color="#b5d6e6"/></td>
                <td class="STYLE11"><hr width="100%" color="#b5d6e6"/></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;结余: </td>
                <td class="STYLE11"><input type="text" id="balance" name="balance" value="${card.balance}" size="20" />
                &nbsp;￥&nbsp;&nbsp;<font color="red">*</font>&nbsp;&nbsp;每月月底更新<br/></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;</td>
                <td class="STYLE11"><input type=hidden id="cardID" name="cardID" value="${card.cardID}" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><input type="submit" value="提交"/><input type="reset" value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</form>
</body>
</html>
